package com.wx.business.course.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.eachonline.mapper.GenericMapper;
import com.eachonline.service.GenericServiceImpl;
import com.wx.business.course.IxbTrainingAgencyService;
import com.wx.dao.mapper.IxbCourseDetailMapper;
import com.wx.dao.mapper.IxbTrainingAgencyMapper;
import com.wx.model.IxbTrainingAgency;
import com.wx.model.IxbTrainingAgencyExample;
@Service("ixbTrainingAgencyService")
public class IxbTrainingAgencyServiceImpl extends GenericServiceImpl<IxbTrainingAgency, IxbTrainingAgencyExample, String> implements IxbTrainingAgencyService  {


	@Resource
	private IxbTrainingAgencyMapper ixbTrainingAgencyMapper;
	
	@Resource
	private IxbCourseDetailMapper ixbCourseDetailMapper;
	
	@Override
	protected GenericMapper<IxbTrainingAgency, IxbTrainingAgencyExample, String> getGenericMapper() {
		return ixbTrainingAgencyMapper;
	}

	@Override
	public List<Map<String, Object>> selectAgencyCourseList(int courseType,
			String agencyId) {
		// TODO Auto-generated method stub
		return ixbCourseDetailMapper.queryAgencyCourseList(courseType, agencyId);
	}

	
}
